package com.bwie.interrogation.mapper;

import com.bwie.interrogation.domain.AddressData;
import com.bwie.interrogation.domain.dto.AddAddressDTO;
import com.bwie.interrogation.domain.vo.AddressVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InterrogationMapper {

    /**
     * 患者添加地址
     * @param userid
     * @param addAddressDTO
     * @param addressData
     * @return
     */
    int addPatientAddress(@Param("patientId") Long userid,@Param("sender") AddAddressDTO addAddressDTO,@Param("address") AddressData.Data addressData);

    /**
     * 获得患者地址列表
     * @param userid
     * @return
     */
    List<AddressVo> getAddressList(Long userid);

    /**
     * 患者删除地址
     * @param id
     * @return
     */
    int delAddress(Long id);

    /**
     * 患者获取挂号医生名称
     * @param userid
     * @return
     */
    String getDoctorName(Long userid);

}
